home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1717 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.unb.ca!hudson!mleese
  2. From: mleese@hudson.CS.unb.ca (Martin Leese - OMG)
  3. Newsgroups: comp.graphics.algorithms,comp.lang.c,sci.image.processing
  4. Subject: Re: 2D image rotation problem
  5. Followup-To: comp.graphics.algorithms,comp.lang.c,sci.image.processing
  6. Date: 16 Jan 1996 15:02:19 GMT
  7. Organization: Ocean Mapping Group, University of New Brunswick, Canada
  8. Distribution: world
  9. Message-ID: <4dgelr$b85@sol.sun.csd.unb.ca>
  10. References: <4de7gt$j0i@charm.magnus.acs.ohio-state.edu> <4dec11$jg5@charm.magnus.acs.ohio-state.edu>
  11. Reply-To: mleese@omg.unb.ca
  12. NNTP-Posting-Host: hudson.omg.unb.ca
  13. X-Newsreader: TIN [version 1.2 PL2]
  14.  
  15. On 15 Jan 1996 20:04:49 GMT Xiaoyi Wu (xiaoyi@bmecg.bme.ohio-state.edu) wrote:
  16. >> Just thought I might make things a bit more clear
  17. >> here:
  18.  
  19. >> The FAQ talked about doing a reverse rotation to
  20. >> avoid holes in the rotated image, which I followed.
  21. >> The question is: even if you do it the reverse way,
  22. >> you still end up with some pixels that fall out
  23. >> of the range of the source image. How do you deal
  24. >> with this - for now, I just arbitrarily assign them
  25. >> the same value as the boundary pixels. Is there a
  26. >> better way?
  27.  
  28. It really depends on your application.
  29.  
  30. Typically, you would specify a background colour and assign this to 
  31. the "outside" pixels.  Alternatively, you could crop the output image 
  32. so there aren't any "outside" pixels.  The key, here, is to think about 
  33. your application.
  34.  
  35. It really depends on your application.
  36.  
  37. Regards,
  38. Martin
  39. E-mail: mleese@omg.unb.ca
  40. WWW:    http://www.omg.unb.ca/~mleese/
  41. ________________________________________________________________________
  42.  Want to know how Ambisonics can improve the sound of your LPs and CDs?
  43.   See the Ambisonic Surround Sound FAQ.  Details on my WWW Home page.
  44.